package com.dragon.modules.yuegou.mapper.product;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dragon.modules.yuegou.entity.product.HelpMemberRefEntity;
import com.dragon.modules.yuegou.model.product.HelpMemberRef;
import com.dragon.modules.yuegou.query.product.HelpMemberRefListQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 会员参加助力活动表 Mapper接口
 *
 * @author px
 * @date 2019-04-12 09:11:44
 * @version 2.0
 */
@Component("proHelpMemberRefMapper")
public interface HelpMemberRefMapper extends BaseMapper<HelpMemberRefEntity> {

	HelpMemberRef getNewHelp(@Param("helpId") String helpId, @Param("memberId") String memberId);

	int updateSchedule(int helpNowValue);

	/**
	 * 集团版查询助力记录列表
	 * @param page
	 * @param query
	 * @return
	 */
	IPage<HelpMemberRef> searchRecord(IPage page, @Param("query") HelpMemberRefListQuery query);

}
